﻿<%@ Control Language="C#" EnableViewState="false" AutoEventWireup="true" CodeBehind="ucConciliacion.ascx.cs" Inherits="Com.Binaria.SISCOB.Web.UI.ucConciliacion" %>
<div id="divMaestro">

<asp:Panel runat="server" ID="pnlFind" Visible="false" CssClass="tabbed_box" >
<fieldset>
    <legend>Filtrar Informaci&oacute;n</legend>
    <div class="tabbed_area">
        <ul class="tabs"> 
            <li><a href="#" title="Conciliacion" class="tab active">Conciliacion</a></li>
        </ul>

        <div class="tabContent" id="Conciliacion">    
        <table>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblCuentaCorriente" AssociatedControlID="ctlCuentaCorriente" Text="CuentaCorriente" /></td>
                <td>&nbsp;<asp:DropDownList runat="server" ID="ctlCuentaCorriente" Width="190px" DataTextField="Text" DataValueField="Id" /></td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblSaldoMayor" AssociatedControlID="ctlSaldoMayor" Text="SaldoMayor" /></td>
                <td>&nbsp;<asp:TextBox runat="server" ID="ctlSaldoMayor" Width="60px" MaxLength="19" /></td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblSaldoCuenta" AssociatedControlID="ctlSaldoCuenta" Text="SaldoCuenta" /></td>
                <td>&nbsp;<asp:TextBox runat="server" ID="ctlSaldoCuenta" Width="60px" MaxLength="19" /></td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchDesde" AssociatedControlID="ctlFchDesde" Text="FchDesde" /></td>
                <td>&nbsp;<asp:TextBox runat="server" ID="ctlFchDesde" Width="70px" MaxLength="10" />&nbsp;<img id="imgFchDesde" src="../../Assets/images/date.png" class="date-pick" /></td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchHasta" AssociatedControlID="ctlFchHasta" Text="FchHasta" /></td>
                <td>&nbsp;<asp:TextBox runat="server" ID="ctlFchHasta" Width="70px" MaxLength="10" />&nbsp;<img id="imgFchHasta" src="../../Assets/images/date.png" class="date-pick" /></td>
            </tr>
<%--            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchCreacion" AssociatedControlID="ctlFchCreacion" Text="FchCreacion" /></td>
                <td>&nbsp;<asp:TextBox runat="server" ID="ctlFchCreacion" Width="70px" MaxLength="10" />&nbsp;<img id="imgFchCreacion" src="/Assets/images/date.png" class="date-pick" /></td>
            </tr>--%>
        </table>
        </div>
    </div>
</fieldset>
<div id="divNew">
	<a href="<%= VirtualPathUtility.ToAbsolute("~/Paginas/Reporte/Default.aspx") %>?View=Conciliacion&Action=3&TB_iframe=true" class="btn btnadd jqBox" title="Agregar informaci&oacute;n ..." >Nuevo</a>
</div>
<div id="divAction">
    <asp:LinkButton ID="btnBuscar" runat="server" ToolTip="Buscar informaci&oacute;n ..." CssClass="btn btnfind">Buscar</asp:LinkButton>
</div>
</asp:Panel>


<asp:Panel runat="server" ID="pnlEdit" Visible="false" CssClass="tabbed_box">
<fieldset>
<%--<asp:HiddenField runat="server" ID="ctlEstaCerradaE" />--%>
    <div class="tabbed_area">
        <ul class="tabs">
            <li><a href="#" title="Conciliacion" class="tab active">Conciliacion</a></li>        
<%--            <li><a href="#" title="ItemConcepto" class="tab">ItemConcepto</a></li>
--%>        </ul>

        <div class="tabContent tabContentModal" id="Conciliacion">
        <table>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblCuentaCorrienteE" AssociatedControlID="ctlCuentaCorrienteE" Text="CuentaCorriente" /></td>
                <td>
                    &nbsp;
                    <asp:DropDownList runat="server" ID="ctlCuentaCorrienteE" Width="190px" DataTextField="Text" DataValueField="Id" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblSaldoMayorE" AssociatedControlID="ctlSaldoMayorE" Text="SaldoMayor" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlSaldoMayorE" 
                                                Width="60px" 
                                                MaxLength="19" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblSaldoCuentaE" AssociatedControlID="ctlSaldoCuentaE" Text="SaldoCuenta" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlSaldoCuentaE" 
                                                Width="60px" 
                                                MaxLength="19" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchDesdeTextE" AssociatedControlID="ctlFchDesdeTextE" Text="FchDesde" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlFchDesdeTextE" 
                                                Width="70px" 
                                                MaxLength="10" />
                    &nbsp;
                    <img id="imgFchDesdeE" src="../../Assets/images/date.png" class="date-pick" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchHastaTextE" AssociatedControlID="ctlFchHastaTextE" Text="FchHasta" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlFchHastaTextE" 
                                                Width="70px" 
                                                MaxLength="10" />
                    &nbsp;
                    <img id="imgFchHastaE" src="../../Assets/images/date.png" class="date-pick" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchCreacionTextE" AssociatedControlID="ctlFchCreacionTextE" Text="FchCreacion" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlFchCreacionTextE" 
                                                Width="70px" 
                                                MaxLength="10" />
                    &nbsp;
                    <img id="imgFchCreacionE" src="../../Assets/images/date.png" class="date-pick" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblObsE" AssociatedControlID="ctlObsE" Text="Obs" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlObsE" 
                                                Width="210px" 
                                                MaxLength="50" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblUserNameE" AssociatedControlID="ctlUserNameE" Text="UserName" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlUserNameE" 
                                                Width="210px" 
                                                MaxLength="50" />
                </td>
            </tr>
<%if (HttpContext.Current.User.IsInRole("admin"))
  { %>            
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblEstaCerradaE" AssociatedControlID="ctlEstaCerradaE" Text="EstaCerrada" /></td>
                <td>
                    &nbsp;<asp:CheckBox ID="ctlEstaCerradaE" runat="server" />
                </td>
            </tr>
 <%} %>        
   
           </table>
        </div>

<%--        <div class="tabContent tabContentModal" id="ItemConcepto">
        
        </div>--%>
    </div>
</fieldset>
<div id="divAction">
<%if (!ctlEstaCerradaE.Checked || HttpContext.Current.User.IsInRole("admin"))
  { %>
	<asp:LinkButton ID="btnGrabar" runat="server" OnClick="btnGrabar_Click" CssClass="btn btnsave" >Grabar</asp:LinkButton>
<%} %>
</div>
</asp:Panel>
<div id="divMessage"><asp:Label ID="lblMessage" runat="server" /></div>

<asp:HiddenField runat="server" ID="ctlId" Value="" />

<asp:Panel runat="server" ID="pnlGrid" Visible="false" CssClass="csGrid" >
	<table id="tblGridView" style="display:none"></table>
</asp:Panel>

<!-- Add Conciliacion -->
<script type="text/javascript" src="<%= VirtualPathUtility.ToAbsolute("~/Scripts/ucConciliacion.js") %>"></script>
<!-- End Conciliacion -->

</div>
